import PlayerDataMgr from "./PlayerDataMgr"
import Util from "../../StartAb/Util";


export default class FireBaseAPI {
    static event_new_user:string = 'event_new_user'
    static event_game_session:string = 'event_game_session'

    static event_drop_level:string = 'event_drop_level'
    static event_suc_level:string = 'event_suc_level'
    static event_lost_level:string = 'event_lost_level'

    static event_ad_request:string = 'event_ad_request'
    static event_ad_failed:string = 'event_ad_failed'

    static event_rateus_show:string = 'event_rateus_show'
    static event_rateus_go:string = 'event_rateus_go'

    static event_first_2_levels = "event_first_2_levels"
    static event_first_6_levels = "event_first_6_levels"
    static event_first_10_levels = "event_first_10_levels"
    
    static logEvent(name:string, params:Object) {
        params['userid'] = Util.getOrGenerateUUID();
        let jsonStr = JSON.stringify(params)
        console.log("logEvent json:%s", jsonStr)
        if(cc.sys.os == cc.sys.OS_ANDROID) {
        }
    }
}
